package com.elepro.shoppingmall.service.user;

import com.elepro.shoppingmall.entity.User;

import java.util.List;

public interface UserService {
    User getUserByUsername(String username);

    List<User> getAuthorityByUsername(String username);

    void sendEmailCode(String message);

    //增加用户
    int insertUser(User user, String code);

    int adminInsertUser(User user);

    //删除用户
    int deleteUserById(long id);

    //修改用户
    int updateUser(User user);

    //查询用户
    List<User> getAllUser();

    User getUserById(long id);

    User getUserByName(String username);
}
